package mobi.hami.huapin.util;

import javax.net.ssl.X509TrustManager;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;

/**
 * 证书信任管理器
 */
public class HAMIX509TrustManager  implements X509TrustManager {
    /**
     * 检查客户端证书
     * @param chain
     * @param authType
     * @throws CertificateException
     */
    public void checkClientTrusted(X509Certificate[] chain, String authType)
            throws CertificateException {
    }
    /**
     * 检查服务器端证书
     * @param chain
     * @param authType
     * @throws CertificateException
     */
    public void checkServerTrusted(X509Certificate[] chain, String authType)
            throws CertificateException {
    }
    /**
     * 返回受信任的x509数组
     * @return
     */
    public X509Certificate[] getAcceptedIssuers() {
        return null;
    }


}
